#include<stdio.h>
int main(){
	int N,wei=0,sum=0;
	scanf("%d",&N);
	int sign=N;
	do{
		sum+=sign%10;
		sign/=10;
		wei++;
	}while(sign>0);
	printf("%d %d",wei,sum);
}
